//接口 ts:typescript &#45;&#45; javascript
//接口 定义规则 -&#45;&#45;实体类-&#45;&#45; 需要一个类实现接口
//export 导出
export interface GoodsForm extends pageForm{
    id:number
    assort: string
    stock: number
    name: string
    picture: string
    price: number
    createTime: string
    updataTime: string
}

//分页查询
export interface pageForm{
    pageNum:number
    pageSize:number
    total:number
    currentPage:number
}

export class GoodsImpl{
    //单个对象
    goodsform:GoodsForm={
        id:0,
        assort: '',
        stock: 0,
        name: '',
        picture: '',
        price: 0,
        createTime: '',
        updataTime: '',
        pageNum:1,
        pageSize:3,
        total:0,
        currentPage:0,
    }
    //多个数据 数组
    goodsList:GoodsForm[]=[]
}
